    <?php  echo $this->headLink()->prependStylesheet('/jquery/jquery.simpledialog/jquery.simpledialog.0.1.css'); ?>
    
    
    
    
    
 <h1>gestion des modeles</h1>
 
<table class="table table-striped" style="width: 82.97872339599999%;" align="center" >
<thead>
   
   <script>
	// increase the default animation speed to exaggerate the effect
	//$.fx.speeds._default = 1000;

	function ouvrir(page) 
	{
	/*
		alert(page);

		 jQuery.ajax({
			  type: "GET",
			  url: page,
			  async :false,
			  success: function(data)
			  {

				  jQuery( "#dialog" ).html(data);
				  jQuery('#dialog').simpleDialog({showCloseLabel: true});
				
				   
			  }
		  
			 });*/
	}
	
	$(function() {
		
		jQuery('.thickbox2').simpleDialog();
		
	});
	</script>
   
    <?php
    // Render each the title of each post for the current page in a list-item
   foreach ($this->paginator as $item) {     
       foreach ($item as $key => $value)  { ?>
        
        <th style="text-align: left;"><?php echo $this->header["$key"]; ?></th>
        <?php } break; } ?> 
        
         <th>Actions</th>
         
  </thead>
  <tbody>
  <?php 
   $i=0;
  foreach ($this->paginator as $item) {
       echo ' <tr>' ; 
     
       foreach ($item as $key => $value) 
       {
        
        echo '<td>'. $value .'</td>' ;
       } 
  
   echo '<td>'.'<a class="thickbox2" type="button" value="Delete"
   title="Supprimer Modèle" 
   
   href="'.$this->url(array('action'=>'deletemodele','module'=>'pilotage','controller'=>'Modelmangement'),null,true).'?height=150&width=400&id='.$item[$this->keyOfData].'">Supprimer'.'</a> ';
       ?>
        
   <a href="<?php echo $this->url (
					              array('controller'=>'modelmangement',
					                      'action'=>'updatemodele',"module"=>"pilotage","id"=>$item[$this->keyOfData]))?>">Modifier</a>
           </td>
       <?php 
     echo '</tr>';
     $i++; 
   }
   
  ?>
 
 </thed>
</table>
<td align="left">
<a href="<?php echo $this->url (
					              array('controller'=>'modelmangement',
					                      'action'=>'addmodele',"module"=>"pilotage"))?>">Ajouter modele</a>
</td>
<br>
</br>
 <div class="control-group">
<?php echo $this->paginator; ?></div>

